Functions

Link copied to clipboard
open override fun SdJwt<JwtAndClaims>.asJwsJsonObject(option: JwsSerializationOption): JsonObject

Creates a representation of an SdJwt as a JWS JSON according to RFC7515. In addition to the General & Flattened representations defined in the RFC7515, the result JSON contains an unprotected header which includes an array with the disclosures

Link copied to clipboard
open suspend override fun SdJwt<JwtAndClaims>.asJwsJsonObjectWithKeyBinding(option: JwsSerializationOption, buildKbJwt: BuildKbJwt): Result<JsonObject>

Creates a representation of an SdJwt as a JWS JSON according to RFC7515. In addition to the General & Flattened representations defined in the RFC7515, the result JSON contains an unprotected header which includes an array with the disclosures of the SdJwt and the key binding JWT

open override fun SdJwt<JwtAndClaims>.asJwsJsonObjectWithKeyBinding(option: JwsSerializationOption, kbJwt: Jwt): JsonObject
Link copied to clipboard
open override fun SdJwt<JwtAndClaims>.present(query: Set<ClaimPath>): SdJwt<JwtAndClaims>?

Tries to create a presentation that discloses the requested claims.

Link copied to clipboard
open override fun SdJwt<JwtAndClaims>.recreateClaims(visitor: ClaimVisitor?): JsonObject

Recreates the claims, used to produce the SD-JWT That are:

Link copied to clipboard

Recreates the claims, used to produce the SD-JWT and at the same time calculates DisclosuresPerClaimPath

Link copied to clipboard
open override fun SdJwt<JwtAndClaims>.serialize(): String

Serializes a SdJwt without a key binding JWT.

Link copied to clipboard
open suspend override fun SdJwt<JwtAndClaims>.serializeWithKeyBinding(buildKbJwt: BuildKbJwt): Result<String>

Serializes a SdJwt with a Key Binding JWT.

Link copied to clipboard
open override fun unverifiedIssuanceFrom(unverifiedSdJwt: String): Result<SdJwt<JwtAndClaims>>

A method for obtaining an SdJwt given an unverifiedSdJwt, without checking the signature of the issuer.

Link copied to clipboard
open suspend override fun verify(jwtSignatureVerifier: JwtSignatureVerifier<JwtAndClaims>, unverifiedSdJwt: String): Result<SdJwt<JwtAndClaims>>

Verifies an SD-JWT serialized using compact serialization.

open suspend override fun verify(jwtSignatureVerifier: JwtSignatureVerifier<JwtAndClaims>, unverifiedSdJwt: JsonObject): Result<SdJwt<JwtAndClaims>>

Verifies an SD-JWT serialized using JWS JSON serialization (either general or flattened format) as defined by RFC7515 and extended by SD-JWT specification.

open suspend override fun verify(jwtSignatureVerifier: JwtSignatureVerifier<JwtAndClaims>, keyBindingVerifier: KeyBindingVerifier.MustBePresentAndValid<JwtAndClaims>, unverifiedSdJwt: String): Result<SdJwtAndKbJwt<JwtAndClaims>>

Verifies a SD-JWT+KB serialized using compact serialization.

open suspend override fun verify(jwtSignatureVerifier: JwtSignatureVerifier<JwtAndClaims>, keyBindingVerifier: KeyBindingVerifier.MustBePresentAndValid<JwtAndClaims>, unverifiedSdJwt: JsonObject): Result<SdJwtAndKbJwt<JwtAndClaims>>

Verifies a SD-JWT+KB in JWS JSON serialization.